package com.ayoka.parenting.ui.meditation.question;

import android.view.View;

import com.ayoka.parenting.R;
import com.ayoka.parenting.databinding.FragmentMeditationQuestionStartBinding;
import com.ayoka.parenting.mvp.BasePresenter;
import com.ayoka.parenting.mvp.BaseView;
import com.ayoka.parenting.mvp.MVPBaseFragment;
import com.jincp.common.function.FunctionManager;

/**
 * @ProjectName: MVPPlugin.
 * @ClassName: MeditationActivity.
 * @Description: .
 * @Author: jincp.
 * @CreateDate: 2019/10/10 18:17.
 */
public class MeditationQuestionStartFragment extends MVPBaseFragment<FragmentMeditationQuestionStartBinding, BaseView, BasePresenter> {

    public static MeditationQuestionStartFragment newInstance() {
        MeditationQuestionStartFragment fragment = new MeditationQuestionStartFragment();
        return fragment;
    }

    @Override
    protected int getContentLayout() {
        return R.layout.fragment_meditation_question_start;
    }

    @Override
    protected void initViews(View view) {
        mDataBinding.btnStart.setOnClickListener(this);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected BasePresenter getPresenter() {
        return null;
    }

    @Override
    public void onClick(View view) {
        if (view == mDataBinding.btnStart){
            FunctionManager.getInstance().invokeFunction("QuestionStart");
        }
    }
}
